import React from 'react'
import {Row, Col} from 'antd'
import {Provider} from 'react-redux'
import Footer from '@/component/Footer'
import Header from '@/component/Header'
import NavLeft from '@/component/NavLeft'
import store from '@/store'
// import { Route} from 'react-router-dom'
import './common.css'

class Admin extends React.Component {
    render() {
        return (
            <div>
                <Provider store={store}>
                    <Row>
                        <Col span={3}>
                            <NavLeft></NavLeft>
                        </Col>
                        <Col span={21} className='right-all'>
                            <Header></Header>
                            <Row className='main'>
                                {this.props.children}
                            </Row>
                            <Footer></Footer>
                        </Col>
                    </Row>
                </Provider>
            </div>
        )
    }
}

export default Admin